/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import connectivity.QueryManager;
import java.sql.Time;
import java.util.Date;

import main.BarApplication;

/**
 *
 * @author Home
 *
 */
public class Course {

    private int cursusnummer;
    private int idcursusrooster;
    private String cursusnaam;
    private String dag;
    private int maxaantal;
    private double prijs;
    private int categorieid;
    private Date bigingdate;
    private Date einddate;
    private Time van;
    private Time tot;
    private int branchID;
    private int studioID;
    private String tijd;
    private String descr;

    public Course() {
        //this(-1, "", -1, -1.0, -1, "");
    }

    public Course(int idcursusrooster, int cursusnummer, int branchID, int studioID, String dag, int maxaantal, Date bigingdate, Date einddate, Time van, Time tot) {
        this.idcursusrooster = idcursusrooster;
        this.cursusnummer = cursusnummer;
        this.dag = dag;
        this.maxaantal = maxaantal;
        this.bigingdate = bigingdate;
        this.einddate = einddate;
        this.van = van;
        this.tot = tot;
        this.branchID = branchID;
        this.studioID = studioID;
    }

    public Course(int cursusnummer, String cursusnaam, int maxaantal, double prijs, int categorieid, String tijd, String descr) {
        this.cursusnummer = cursusnummer;
        this.cursusnaam = cursusnaam;
        this.maxaantal = maxaantal;
        this.prijs = prijs;
        this.categorieid = categorieid;
        this.tijd = tijd;
        this.descr = descr;
    }

    public Course(int cursusnummer, int categorieid, String cursusnaam, double prijs, String descr) {
        this.cursusnummer = cursusnummer;
        this.categorieid = categorieid;
        this.cursusnaam = cursusnaam;
        this.prijs = prijs;
        this.descr = descr;


    }

    public Course(int cursusnummer) {
        this.cursusnummer = cursusnummer;

    }

    public void update() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.Updatecursus(this);

    }

    public void updaterooster() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.Updatecursusrooster(this);

    }

    public void insert() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.addCursus(this);
    }

    public void insertRooster() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.addCursusToRooster(this);
    }

    public Course(int cursusnummer, int idcursusrooster, String cursusnaam, String dag, int maxaantal, double prijs, int categorieid, Date bigingdate, Date einddate, Time van, Time tot, int branchID, int studioID) {
        this.cursusnummer = cursusnummer;
        this.idcursusrooster = idcursusrooster;
        this.cursusnaam = cursusnaam;
        this.dag = dag;
        this.maxaantal = maxaantal;
        this.prijs = prijs;
        this.categorieid = categorieid;
        this.bigingdate = bigingdate;
        this.einddate = einddate;
        this.van = van;
        this.tot = tot;
        this.branchID = branchID;
        this.studioID = studioID;
    }

    public int getCursusnummer() {
        return cursusnummer;
    }

    public void setCursusnummer(int cursusnummer) {
        this.cursusnummer = cursusnummer;
    }

    public String getCursusnaam() {
        return cursusnaam;
    }

    public void setCursusnaam(String cursusnaam) {
        this.cursusnaam = cursusnaam;
    }

    public int getMaxaantal() {
        return maxaantal;
    }

    public void setMaxaantal(int maxaantal) {
        this.maxaantal = maxaantal;
    }

    public double getPrijs() {
        return prijs;
    }

    public String getDag() {
        return dag;
    }

    public void setDag(String dag) {
        this.dag = dag;
    }

    public void setPrijs(double prijs) {
        this.prijs = prijs;
    }

    public int getCategorieid() {
        return categorieid;
    }

    public void setCategorieid(int categorieid) {
        this.categorieid = categorieid;
    }

    public int getIdcursusrooster() {
        return idcursusrooster;
    }

    public void setIdcursusrooster(int idcursusrooster) {
        this.idcursusrooster = idcursusrooster;
    }

    public Date getBigingdate() {
        return bigingdate;
    }

    public void setBigingdate(Date bigingdate) {
        this.bigingdate = bigingdate;
    }

    public Date getEinddate() {
        return einddate;
    }

    public void setEinddate(Date einddate) {
        this.einddate = einddate;
    }

    public Time getVan() {
        return van;
    }

    public void setVan(Time van) {
        this.van = van;
    }

    public Time getTot() {
        return tot;
    }

    public void setTot(Time tot) {
        this.tot = tot;
    }

    public int getBranchID() {
        return branchID;
    }

    public void setBranchID(int branchID) {
        this.branchID = branchID;
    }

    public int getStudioID() {
        return studioID;
    }

    public void setStudioID(int studioID) {
        this.studioID = studioID;
    }

    public String getTijd() {
        return tijd;
    }

    public void setTijd(String tijd) {
        this.tijd = tijd;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
}
